import { defineConfig } from "vite";

export default defineConfig({
  build: {
    lib: {
      entry: "./lib/index.ts",
      name: "roccia",
      fileName: "roccia",
    },
  },
  test: {
    // 启用类似 Jest 的全局 API
    globals: true,
    // 包括哪些文件作为测试文件
    include: ["**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
  },
});
